#pragma once
#include <hiredis/hiredis.h>
#include <iostream>
#include <fstream>
#include <cstring>
#include "json/json.h"
#include "curl/curl.h"
#include "FUNCTIONS.h"
extern "C" {
#include "../element/syncd/include/sln_nlink.h"
#include "../element/sln/include/sln_add.h"
}

class RedisCli{

public:
    static bool HSET_val(const std::string &table, const std::string &key, const std::string &value);
    static bool HGET_all_val(const std::string &table, std::vector<std::string> &result_arr);
    static bool WATCH(const std::string &table);
    static bool lack_callback(const std::vector<std::string> &Event_arr);
};